<?php
/**
 * Class admin_log_model
 */
class admin_log_model extends  SDF_Model{
    function __construct(){
        $this->db = $this->load->database('default',true);
        parent::__construct();
    }

    public function _write_log($data){
		$this->_from('admin_log');
		return $this->_insert($data);
    }
    /**
     * 清空日志
     */
    public function del_log()
    {
    	return $this->db->empty_table('admin_log');    	
    }
        
}
